﻿<div class=head>编辑用户</div>

<div class="area">
  <%= error_messages_for 'user' %>
  
  <fieldset>
    <legend>Enter User Details</legend>
    
    <% form_for :user, @user, :url => {:action => "update", :id => @user } do |form| %>
      <p>
        <label for="user_name" > 用户名: </label>
        <%= form.text_field :name, :size => 40 %>
      </p>
      
      <p>
        <label for="user_full_name" > 姓名: </label>
        <%= form.text_field :full_name, :size => 40 %>
      </p>

      <p>
        <label for="user_password"> 密码: </label>
        <%= form.password_field :password, :size => 40 %>
      </p>
      
      <p>
        <label for="user_password_confirmation"> 确认:</label>
        <%= form.password_field :password_confirmation, :size => 40 %>
      </p>
      
      <p>
        <label for="user_desc" > 描述: </label>
        <%= form.text_field :desc, :size => 40 %>
      </p>
      
      <%= submit_tag "编辑用户", :class => "submit" %>
      
    <% end %>
  </fieldset>
</div>
